package cn.zhiwen.service.impl;

import cn.zhiwen.entity.DealerIdCodeName;
import cn.zhiwen.entity.UserData;
import cn.zhiwen.mapper.RegisterUserMapper;
import cn.zhiwen.service.RegisterUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Auther: wuzhiwen
 * @Date: 2018/10/22 15:19
 * @Description:
 */
@Service
public class RegisterUserServiceImpl implements RegisterUserService {

    @Autowired
    private RegisterUserMapper registerUserMapper;


    public int demo() {
        return registerUserMapper.demo();
    }

    @Transactional@Override
    public void insertVip(UserData userData) {
        registerUserMapper.insertVip(userData);
    }

    @Override
    public DealerIdCodeName queryDeleaCode(UserData userData) {
        return  registerUserMapper.queryDeleaCode(userData);
    }
}
